package com.String;

public class NewString {
    public static void main(String[] args) {
        char[] chars = {'a','b','c'};
        String a = new String(chars);
        String b = new String(chars);
        System.out.println(a == b);

        String c = new String("abc");
        String d = new String("abc");
        System.out.println(c == d);

        String e = "abc";
        String f = "abc";
        System.out.println(e == f);
    }
}
